package tenantchannellogic

import (
	"context"

	tenantChannel "gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/dao/model/tenant/channel"
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/svc"
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/rpc"
	"github.com/zeromicro/go-zero/core/logx"
)

type WithdrawCollectionBankListPageLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewWithdrawCollectionBankListPageLogic(ctx context.Context, svcCtx *svc.ServiceContext) *WithdrawCollectionBankListPageLogic {
	return &WithdrawCollectionBankListPageLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

// ------------------tenant channel bank_agent ------------------
func (l *WithdrawCollectionBankListPageLogic) WithdrawCollectionBankListPage(in *rpc.GetWithDrawCollectionBankRequest) (*rpc.GetWithDrawCollectionBankResponse, error) {
	// todo: add your logic here and delete this line

	m := tenantChannel.NewWithdrawCollectionBankModel(l.ctx, l.svcCtx.Db)
	return m.WithdrawCollectionBankListPage(in)
}
